package main

import (
	"shortlink/config"
	"shortlink/routers"

	"github.com/astaxie/beego"
)

func main() {
	if err := config.InitLinkDb(); err != nil {
		// fmt.Println("111", err)
		return
	}

	routers.RegisterRouters()
	beego.Run(":80")
}
